import http from '../../core/request'
import { Inventory } from './inventory.type'
// 获取库存列表
const getInventoryList = (params: Inventory.Params.Search, isShowLoading: boolean = true) => {
    return http.post<Inventory.List>('/mis-inventory', params, { loading: isShowLoading })
}
//成色
const getQueryDictionary = (params: {
    key : string
}, isShowLoading: boolean = false) => {
    return http.get<Inventory.Dictionary>('/mis-dict', params, { loading: isShowLoading })
}
export default {
    getInventoryList,
    getQueryDictionary
}